<template>
  <div class="home">
    <!-- 需求：点击按钮，控制数量累加 -->
    <div>当前数量：{{count}}</div>
    <div>
      <button @click='handleClick'>点击</button>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Home',
  data () {
    return {
      count: 0
    }
  },
  methods: {
    handleClick () {
      this.count += 1
    }
  }
}
</script>
